package com.youlai.boot.factory.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.factory.model.entity.WorkOrderProcess;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.factory.model.query.WorkOrderProcessQuery;
import com.youlai.boot.factory.model.vo.WorkOrderProcessVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 报工工序明细Mapper接口
 *
 * @author youlaitech
 * @since 2025-10-16 15:34
 */
@Mapper
public interface WorkOrderProcessMapper extends BaseMapper<WorkOrderProcess> {

    /**
     * 获取报工工序明细分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<WorkOrderProcessVO>} 报工工序明细分页列表
     */
    Page<WorkOrderProcessVO> getWorkOrderProcessPage(Page<WorkOrderProcessVO> page, WorkOrderProcessQuery queryParams);


    int batchSave(List<WorkOrderProcess> workOrderProcesses);
}
